package io.gitee.hefren.hhconfig.client.conf;

import io.gitee.hefren.hhconfig.client.service.HhConfigService;
import org.springframework.core.env.EnumerablePropertySource;

/**
 * @Date 2024/5/29
 * @Author lifei
 */
public class HhPropertySource extends EnumerablePropertySource<HhConfigService> {

    public HhPropertySource(String name, HhConfigService source) {
        super(name, source);
    }

    @Override
    public String[] getPropertyNames() {
        return source.getPropertyNames();
    }

    @Override
    public Object getProperty(String name) {
        return source.getProperty(name);
    }
}
